package com.net.xpay.openapi.dto;

import com.net.xpay.core.enums.BookAccountChargeOrderStatus;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
public class OpenApiSafePayChargeOrderQueryDto {

    @ApiModelProperty(notes = "id")
    private Long id;

    @ApiModelProperty(notes = "支付宝账号")
    private String alipayNickName;

    @ApiModelProperty(notes = "转账金额 单位元 2位小数 2.00")
    private BigDecimal transAmount;

    @ApiModelProperty(notes = "外部订单号")
    private String importBizNo;

    @ApiModelProperty(notes = "订单充值失效时间")
    private LocalDateTime timeExpire;

    @ApiModelProperty(notes = "支付时间")
    private String payDate;

    @ApiModelProperty(notes = "支付宝支付资金流水号，仅当转账成功才会返回该参数")
    private String payFundOrderId;

    @ApiModelProperty(notes = "支付宝转账单据号")
    private String orderId;

    @ApiModelProperty(notes = "订单状态")
    private BookAccountChargeOrderStatus status;

    @ApiModelProperty(notes = "创建时间")
    private LocalDateTime createTime;

    public static OpenApiSafePayChargeOrderQueryDto getInstance() {
        return new OpenApiSafePayChargeOrderQueryDto();
    }
}
